package com.ysd.lis.entity.inti;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysd.lis.entity.BaseEntityJpa;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * <p>
 * cold_chain.t_menu
 * </p>
 *
 * @author Peng
 * @since 2025-01-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("INT_INSTR_BLOOD_RESULT")
@Entity
@Table(name = "INT_INSTR_BLOOD_RESULT")
public class IntInstrBloodResult extends BaseEntityJpa {

    private static final long serialVersionUID = 1L;

    @TableField("RPT_GROUP")
    @Column(name = "RPT_GROUP")
    private String rptGroup;

    /**
     * 样本/条码
     */
    @TableField("SAMPLE_NO")
    @Column(name = "SAMPLE_NO")
    private String sampleNo;

    /**
     * 检验日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("SAMPLEDA")
    @Column(name = "SAMPLEDA")
    private Timestamp sampleda;

    /**
     * 血瓶编码
     */
    @TableField("BARCODE")
    @Column(name = "BARCODE")
    private String barcode;

    /**
     * 血瓶类型
     */
    @TableField("MEDIUM_TYPE")
    @Column(name = "MEDIUM_TYPE")
    private String mediumType;

    /**
     * 结果标识（阴性阳性）
     */
    @TableField("RESULT_TYPE")
    @Column(name = "RESULT_TYPE")
    private String resultType;
    /**
     * 培养结果
     */
    @TableField("RESULT")
    @Column(name = "RESULT")
    private String result;

    /**
     * 上机时间
     */
    @TableField("TEST_TIME")
    @Column(name = "TEST_TIME")
    private Timestamp testTime;

    /**
     * 结果时间
     */
    @TableField("RESULT_TIME")
    @Column(name = "RESULT_TIME")
    private Timestamp resultTime;

    /**
     * 是否有通道号
     */
    @TableField("IS_NO_CHANNEL")
    @Column(name = "IS_NO_CHANNEL")
    private String isNoChannel;

    /**
     * 所在位置信息
     */
    @TableField("POS_INFO")
    @Column(name = "POS_INFO")
    private String posInfo;
}
